// 放置全局指令
import store from '@/store'
import Vue from 'vue'
Vue.directive('auth', {
  inserted(el, option) {
    if (store.state.user.profile.permissions.includes('*:*:*')) {
      return
    }
    if (!store.state.user.profile.permissions.includes(option.value)) {
      el.remove()
    }
  }
})
